import httpInstance from "@/utils/http.js";

export function getBannerAPI(params = { }){
    const { distributionSite = '1' } = params
    return httpInstance({
        url: '/home/banner',
        params: {
            distributionSite,
        }
    })
}

/**
 * 获取新鲜好物数据
 * @returns 新鲜好物
 */
export function findNewAPI(){
    return httpInstance({
        url: '/home/new'
    })
}

/**
 * 获取人气推荐数据
 * @returns 人气推荐
 */
export function findHotAPI(){
    return httpInstance({
        url: '/home/hot'
    })
}

/**
 * @description: 获取所有商品模块
 * @param {*}
 * @return {*}
 */
export const getGoodsAPI = () => {
    return httpInstance({
      url: '/home/goods'
    })
  }